package com.proxy;
//静态代理实现类
public class CalculateProxyImpl implements Calculate{ 
	private Calculate calculate;
	public CalculateProxyImpl(Calculate calculate){
		super();
		this.calculate=calculate;
		
	}
	public int add(int a, int b) {
		System.out.println("加法操作之前");
		int c = a + b;
		System.out.println("加法操作之后");
		return c;
	}

	public int subtract(int a, int b) {
		return 0;
	}

	public int multiply(int a, int b) {
		return 0;
	}

	public int divide(int a, int b) {
		return 0;
	}
}
